//
//  MyTableViewCell.m
//  FMDBSingle
//
//  Created by qianfeng on 16/5/31.
//  Copyright © 2016年 qianfeng. All rights reserved.
//

#import "MyTableViewCell.h"

@interface MyTableViewCell()

@property (nonatomic,strong)UILabel *lable;

@end

@implementation MyTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _lable = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height)];
        [self.contentView addSubview:_lable];
    }
    
    return self;
}

- (void)refreshCellWithModel:(Student *)stu{
    
    _lable.text = [NSString stringWithFormat:@"姓名:%@ 年龄:%@ 性别:%@",stu.stuName,stu.stuAge,stu.stuSex];

}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
